const express = require("express")
const { checkToken }=require("../mod/jwt.js")
const home = express.Router() //创建路由

home.get("/", async (req, res) => {  //必须要先匹配到/home ，才能来这儿
  // let token=req.headers.authorization.replace("Bearer ","")
  // console.log(token)
  // let res1=await checkToken(token)
  // console.log(res1)
  // console.log("home---"+process.env.captcha)
        res.send({
            message:"这是home请求",
            status:"200",
            data:[{name:"TiMi"}]
        })  
})

module.exports = home